function PlayerJoin(ply)
		Msg(team.NumPlayers(1).."\n")
		if team.NumPlayers(1)<1 then
			ply:SetTeam(1)
			Msg(ply:Nick().." is the rabbit!")
			else
			ply:SetTeam(2)
		end
		Msg(team.NumPlayers(1).."\n")
end

function PlayerDeath(Victim, weapon, Killer)
	if Victim:Team()==1 then
			Victim:SetTeam(2)
			Killer:SetTeam(1)
			PrintMessage( HUD_PRINTTALK, Killer:Name().." Killed the Snitch, and is now the snitch.")

	end
end

hook.Add("PlayerSpawn", "playerFirstSpawn", PlayerJoin)
hook.Add("PlayerDeath", "teamCheck", PlayerDeath)
